<template>
  <el-icon>
    <app-icon icon="ep:bell" />
  </el-icon>
</template>

<script setup>
import TimingMsg from '@/composables/TimingMsg.js'
import dayjs from 'dayjs'

const timingMsg = new TimingMsg()

onMounted(() => {
  timingMsg.start()
})

timingMsg.change(() => {
  ElNotification({
    title: `已经 ${dayjs().format('HH:mm')} 了`,
    message: '起来活动一下吧~',
    position: 'bottom-right',
    type: 'info'
  })
})
</script>

<style lang="scss" scoped></style>
